import {tableProps, tableEmits} from './dTable'
import {headerProps, headerEmits} from './dHeader'
import {footerProps, footerEmits} from './dFooter'

//表格组件基础
export const baseProps = {
  //显示搜索栏
  showHeader:{
    type:Boolean,
    default:true
  },
  //显示底部分页栏
  showFooter:{
    type:Boolean,
    default:true
  },
  //显示加载状态
  showLoading:{
    type:Boolean,
    default:false
  }
}

//表格组件参数
export const props = Object.assign(baseProps, tableProps, headerProps, footerProps)
//事件
export const emits = tableEmits.concat(headerEmits).concat(footerEmits)